<?php require_once 'header.php';?>    <!-- DataTables Responsive CSS -->
<link rel="stylesheet" type="text/css" href="uploadify/uploadify.css">
        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            学生信息上传&nbsp;&nbsp;&nbsp;<a href="uploader/moban/学生信息录入模版1.xlsx">点击下载模版文件</a>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="modal-body">
                				<div id="queue"></div>
                				<input id="file_upload" name="file_upload" type="file" multiple="true">
                				<div id="status"></div>
                  			</div>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            学生照片上传&nbsp;&nbsp;&nbsp;jpg格式，身份证号命名，且<20KB
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="modal-body">
                				<div id="queue"></div>
                				<input id="pic_upload" name="pic_upload" type="file" multiple="true">
                				<div id="picstatus"></div>
                  			</div>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
             </div>
        </div>
        <!-- /#page-wrapper -->
        <!-- DataTables JavaScript -->
<?php require_once 'bottom.php';?>
<script src="uploadify/jquery.uploadify.js"></script>
<script>
$(function() {
	$('#file_upload').uploadify({
		'swf'      : 'uploadify/uploadify.swf',
		'uploader' : $.gu("studentsadd"),
        'fileTypeDesc': 'Excel Files',
        'fileTypeExts': '*.xls;*.xlsx',
        'multi': false,
        'fileSizeLimit': '20MB',
        'formData'     : {
			'type' : 'upload','id':'<?php echo $_SESSION['id']?>'
		},
		'onUploadSuccess':function(file,data,response){
			$("#status").html(data);
		}
	});
	var counti=0;
	$('#pic_upload').uploadify({
		'swf'      : 'uploadify/uploadify.swf',
		'uploader' : $.gu("studentsadd"),
        'fileTypeDesc': 'jpg',
        'fileTypeExts': '*.jpg',
        'multi': true,
        'fileSizeLimit': '51KB',
        'formData'     : {
			'type' : 'pic','id':'<?php echo $_SESSION['id']?>'
		},
		'onUploadSuccess':function(file,data,response){
			counti=parseInt(data)+parseInt(counti);
			$("#picstatus").html("已处理："+(counti));
		}
	});
});
</script>
	